package com.rabbit.eap.system.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.rabbit.eap.framework.convert.Covert;
import com.rabbit.eap.framework.core.validator.groups.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @projectName eap
 * @packageName com.rabbit.eap.system.dto
 * @className SysPostDTO
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/06/06 23:34:03
 * <p>Description:
 * SysPostDTO对象
 * </p>

 */
@Data
@Accessors(chain = true)
@ApiModel(value = "SysPostDTO对象")
public class SysPostDTO extends Covert {
    private static final long serialVersionUID = 1L;
    /**
     * 岗位ID
     */
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class})
    @ApiModelProperty("岗位ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 岗位编码
     */
    @NotBlank(message = "岗位编码不能为空")
    @ApiModelProperty("岗位编码")
    @TableField("post_code")
    private String postCode;

    /**
     * 岗位名称
     */
    @NotBlank(message = "岗位名称不能为空")
    @ApiModelProperty("岗位名称")
    @TableField("post_name")
    private String postName;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空")
    @ApiModelProperty("显示顺序")
    @TableField("sort")
    private Integer sort;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty("状态（0正常 1停用）")
    @TableField("status")
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

}